#include "stdafx.h"
#include "MuPlayer.h"

using namespace GameServer::Objects::MuPlayer;
using namespace Defines;

CMuPlayer::CMuPlayer()
{
	CMuObject::CMuObject();
	this->SetType(Player);
	this->Init();
}

CMuPlayer::~CMuPlayer()
{
	CMuObject::~CMuObject();
}

void CMuPlayer::Init()
{
	strcpy_s(szAccountName, "");
	bLoginMsgSend = false;
	uLoginMsgCount = 0;
	uDBClass = 255;
	uSkin = 255;
	uLevel = 1;
	uLevelUpPoint = 0;
	uExperience = 0;
	uNextExperience = GetExp(uLevel);
	uMoney = 0;
	uStrenght = 0;
	uDexterity = 0;
	uVitality = 0;
	uEnergy = 0;
	fLife = 0.0f;
	fMaxLife = 0.0f;
	uAddLife = 0;
	fMana = 0.0f;
	fMaxMana = 0.0f;
	fVitToLife = 0.0f;
	fEneToMana = 0.0f;
	uPkCount = 0;
	cPkLevel = Common;
	uPkTime = 0;
	dwMySelfDefenseTime = 0;
}
